export default {
  fillterCityname(state) {
    var citynameSplice = state.city.split('')
    if (citynameSplice.length > 4) {
      var cityName = ''
      for (let i = 0; i < 4; i++) {
        cityName += citynameSplice[i]
      }
      state.city = cityName
    }
    try {
      localStorage.city = state.city
    } catch (e) {}
    return state.city
  }
}